
#include "CppUTest/TestHarness.h"

#include <afxwin.h>         // MFC core and standard components
#include "ProntoIDGrabber.h"

TEST_GROUP(ProntoIDGrabberTest)
{
public:    
    void setup()
    {
    }

    void teardown()
    {
    }

    CProntoIDGrabber m_grabber;
};

TEST(ProntoIDGrabberTest, parse_internal_pronto_id)
{
    CString strID("12345ESPE67");
    CString strResult = m_grabber.ParseProntoID(strID);

	STRCMP_EQUAL(strID, strResult);
}

TEST(ProntoIDGrabberTest, parse_customer_pronto_id)
{
    CString strID("NA12345678");
    CString strResult = m_grabber.ParseProntoID(strID);

	STRCMP_EQUAL(strID, strResult);
}